package com.msh.platform.elm.service.impl;

import com.msh.platform.elm.dao.CfgAreaRepository;
import com.msh.platform.elm.entity.CfgArea;
import com.msh.platform.elm.service.CfgAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CfgAreaServiceImpl implements CfgAreaService {

    @Autowired
    private CfgAreaRepository cfgAreaRepository;
    
    public CfgArea findById(int id){
    	return cfgAreaRepository.getOne(id);
    }
    
    public List<CfgArea> findByPId(int pId){
    	return cfgAreaRepository.findByPId(pId);
    }

}
